package com.matt.service;

import com.matt.domain.Children;
import com.tuo51.evaluate.service.EvaluateV2ExportService;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.IOException;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2017/7/26
 * *******************************
 */
public interface UploadService {

    Children uploadChildrenHeadImg(String childrenId, MultipartFile file);

    String uploadTeacherHeadImg(String ticket, MultipartFile file);

    String uploadLiveRecordImg(String staffId, Integer type, MultipartFile[] files);

    String uploadCourseLiveRecordImg(String staffId, Integer type, MultipartFile[] files);

    String uploadBirthdayRecordImg(String staffId, Integer type, MultipartFile[] files);

    String uploadCheckInRecordImg(String childrenId, MultipartFile file);

    String uploadCheckOutRecordImg(String childrenId, MultipartFile file);

    String uploadCourseAreaAttachment(MultipartFile file);

    String uploadCourseOfficialAttachment(MultipartFile file);

    String uploadCourseTopicAdvise(MultipartFile file);

    String uploadObservationRecordImg(Integer type, MultipartFile[] files);

    String uploadPrepareToolImg(MultipartFile file);

    /**
     *
     * @param filePath
     * @param type  "photo" | "evaluate_report"
     * @return
     * @throws IOException
     */
    String uploadLocalFile(String filePath, String type) throws IOException;
    String uploadLocalFile(String url, EvaluateV2ExportService.ExportType type, String prefix);
    String uploadLocalFile(File url, EvaluateV2ExportService.ExportType type, String prefix);

    String uploadStaticPhotoAlbum(String filePath) throws IOException;
    String uploadStaticEvaluateReport(String childrenName, String filePath) throws IOException;
    String uploadStaticPBEvaluateReport(String childrenName, String filePath) throws IOException;

    String uploadLiveRoomImg(String yingShiId, MultipartFile file);

    String uploadFile(MultipartFile file);

    String uploadCommonFile(String staffId, String type, MultipartFile file);

    String uploadComplaintRecordImg(String usersId, MultipartFile[] files);

    String uploadSimpleCookbookImg(String staffId, MultipartFile file);

    String uploadPhoto(String staffId, String albumId, MultipartFile file);

    String uploadFileOss(MultipartFile image) throws IOException;
}
